﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CTP.Entitys
{
    /// <summary>
    /// 行情数据实体
    /// </summary>
    public struct QouteInfo
    {
        /// <summary>
        /// 市场
        /// </summary>
        public string Market;
        /// <summary>
        /// 代码
        /// <para>6位</para>
        /// </summary>      
        public string Symbol;
        /// <summary>
        ///  涨跌
        /// </summary>
        public float PriceChange;
        /// <summary>
        ///  涨跌幅
        /// </summary>
        public float PriceChangePct;
        /// <summary>
        /// 当日总量(成交量)
        /// </summary>
        public float Volume;
        /// <summary>
        /// 成交总金额
        /// </summary>
        public double Amount;
        /// <summary>
        /// 最新成交价
        /// </summary>
        public float LastPrice;
        /// <summary>
        /// 涨停价
        /// </summary>
        public float UpLimitPrice;
        /// <summary>
        /// 跌停价
        /// </summary>
        public float DownLimitPrice;
        /// <summary>
        /// 当日最高
        /// </summary>
        public float High;
        /// <summary>
        /// 当日最低
        /// </summary>
        public float Low;
        /// <summary>
        /// 昨收
        /// </summary>
        public float PrevClose;
        /// <summary>
        /// 开盘价
        /// </summary>
        public float Open;
        /// <summary>
        /// 均价
        /// </summary>
        public float AvgPrice;
        /// <summary>
        /// 买价一
        /// </summary>
        public float BuyPrice1;
        /// <summary>
        /// 买价二
        /// </summary>
        public float BuyPrice2;
        /// <summary>
        /// 买价三
        /// </summary>
        public float BuyPrice3;
        /// <summary>
        /// 买价四
        /// </summary>
        public float BuyPrice4;
        /// <summary>
        /// 买价五
        /// </summary>
        public float BuyPrice5;
        /// <summary>
        /// 买量一
        /// </summary>
        public float BuyVol1;
        /// <summary>
        /// 买量二
        /// </summary>
        public float BuyVol2;
        /// <summary>
        /// 买量三
        /// </summary>
        public float BuyVol3;
        /// <summary>
        /// 买量四
        /// </summary>
        public float BuyVol4;
        /// <summary>
        /// 买量五
        /// </summary>
        public float BuyVol5;
        /// <summary>
        /// 卖价一
        /// </summary>
        public float SellPrice1;
        /// <summary>
        /// 卖价二
        /// </summary>
        public float SellPrice2;
        /// <summary>
        /// 卖价三
        /// </summary>
        public float SellPrice3;
        /// <summary>
        /// 卖价四
        /// </summary>
        public float SellPrice4;
        /// <summary>
        /// 卖价五
        /// </summary>
        public float SellPrice5;
        /// <summary>
        /// 卖量一
        /// </summary>
        public float SellVol1;
        /// <summary>
        /// 卖量二
        /// </summary>
        public float SellVol2;
        /// <summary>
        /// 卖量三
        /// </summary>
        public float SellVol3;
        /// <summary>
        /// 卖量四
        /// </summary>
        public float SellVol4;
        /// <summary>
        /// 卖量五
        /// </summary>
        public float SellVol5;
        /// <summary>
        /// 昨持仓量
        /// </summary>
        public float PrevPosition;
        /// <summary>
        /// 持仓量
        /// </summary>
        public float Position;
        /// <summary>
        /// 今结算价 
        /// </summary>
        public float SettlementPrice;
        /// <summary>
        /// 昨日结算价
        /// </summary>
        public float PrevSettlementPrice;

        /// <summary>
        /// 交易日
        /// <para>8位</para>
        /// </summary>
        public string ExchTradeDay;

        /// <summary>
        /// 交易时间
        /// <para>8位</para>
        /// </summary>
        public string ExchTradeTime;
    }
}
